
#ifndef __REAL_TIME_CLOCK_H__
#define __REAL_TIME_CLOCK_H__

#include <stdint.h>
#include "fun_time.h"
#include "RealTimeClockDefine.h"

typedef struct {
	void(*set)(struct tm_s*);
	void(*get)(struct tm_s*);
	void(*getBcd)(TimeBCD*);
	void(*setBcd)(TimeBCD*);
}RealTimeClock;

void RealTimeClock_Register(const RealTimeClock* clock);
void RealTimeClock_Set(struct tm_s *tim);
void RealTimeClock_Get(struct tm_s *tim);
void RealTimeClock_SetBCD(TimeBCD *tim_bcd);
void RealTimeClock_GetBCD(TimeBCD *tim_bcd);
uint32_t RealTimeClock_Now(void);
void RealTimeClock_SetTime(uint32_t time);

#endif



